package computer;

public abstract class Memory {
	Word[] memory;
	
	protected Memory(int capacity) {
		memory = new Word[capacity];
	}
	
	public Word get(int i) {
		return memory[i];
	}
	
	public void add(int i, Word word) {
		memory[i] = word;
	}
}
